<%-- 
    Document   : index
    Created on : Nov 3, 2011, 1:21:18 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>East2WestTourandTravels</title>
<link rel="stylesheet" type="text/css" href="css/style_index2.css">
 <script type="text/javascript" language="javascript" src="js/jquery.js"></script>
 <script type="text/javascript">
            $(document).ready(function()
            {
                    //slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
                $("#firstpane p.menu_head").click(function()
                {
                    $(this).css({backgroundImage:"url()"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
                    $(this).siblings().css({backgroundImage:"url()"});
                    });
                    //slides the element with class "menu_body" when mouse is over the paragraph
                $("#secondpane p.menu_head").mouseover(function()
                {
                     $(this).css({backgroundImage:"url(images/down.png)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
                     $(this).siblings().css({backgroundImage:"url(images/left.png)"});
                    });
            });			
            </script>
</head>

<body>
	<div id="header">
		
                    
                     <%
                     if(session.getAttribute("User")==null){
                         %>
                         <div class="login">
                    <form action="ControllerCustomer" method="get" id="commentForm">
			<input type="text" class="input" name="user" value="Login" /> <input input type="password" id="pass" name="pass" class="input" value="Password" />																																			<div style="position:absolute;top:1px;left:1px;height:0px;width:0px;overflow:hidden"><h1><a href="http://www.greatdirectories.org">best web directories</a></h1><h1><a href="http://www.bestfreetemplates.org">best free templates</a></h1></div>
			<input type="submit" name="login" value="Login" class="enter"/>
                        </form>
			<div class="links"><a href="index.jsp?page=ForgetPass">Forgot password</a> | <a href="index.jsp?page=Registry">Registration</a></div>                        
                        </div>                    
                        <%}else{                         
                          String getsession=session.getAttribute("User").toString();
                         
                        %>                  <div class="login" style="padding: 0 0 0 150px;">        <div class="links">   
                              <a >Welcome: <%=getsession%></a> | 
                              <a href="index.jsp?page=Profile">Profile</a> | 
                              <a href="index.jsp?page=MyCarBook">Bills rental cars</a> | 
                              <a href="index.jsp?page=MyCancelCar">Bills cancel cars</a> | 
                              <a href="index.jsp?page=BillBookTours">Bills book tours</a> | 
                              <a href="index.jsp?page=BillTourCanceled">Bills cancel tours</a> |                             
                              <a href="ControllerLogout">Logout</a>      
                        </div>
                              </div>
                            <%
                                                       }%>
		
		<ul id="menu">			
                           <li><a href="index.jsp">Home</a></li>
                           <li><a href="index.jsp?page=listTour">Package Tours</a></li>
                           <li><a href="index.jsp?page=ListCars">Car Rentals</a>
                           </li>
                           <li><a href="index.jsp?page=ListHotels">Hotels</a>
                           </li>
                           <li><a href="index.jsp?page=ListFlights">Flights</a></li>
                           <li><a href="index.jsp?page=AboutUs">About Us</a>
                            </li>
                            <li><a href="index.jsp?page=ContactUs">Contact Us</a></li>                                                     
		</ul>
	</div>
	<div id="wrapper">
		<div id="sidebar">
			<div class="logo_block">
				<a href="#"><img src="images/logo.jpg" alt="setalpm" width="198" height="156" /></a><br />						
			</div><center>
			<span style="font-size: 20px;color: #343434;">Adverting Here</span></center>
                        <jsp:include page="Advert.jsp"/>
			
		</div>
		<div id="content">
                    <div><jsp:include page="Slideshow.jsp"/></div>
			<div class="bg">
				<div class="column1">
					<%
                                            if(request.getParameter("page")!= null)
                                            {
                                                String U=request.getParameter("page");
                                                String str=U+".jsp";
                                        %>
                                                <jsp:include page="<%=str%>"/>                  
                                        <%                              
                                            }             
                                            else
                                            {
                                            %>                   
                                                <jsp:include page="listTour.jsp"/>  
                                            <%
                                            }
                                        %>
				</div>
				<div class="column2">
                                    <center>
					<span style="font-size: 20px;color: #343434">Top cars</span></center>
                                    <div class="news" style="background-color:#f7f6f6">
						<jsp:include page="NewProduct.jsp"/>
					</div>
                                        <div id="search">
                        <center>
                <span style="font-size: 20px;color: #343434;">Search</span></center>   
                        <div> <!--This is the first division of left-->
                             <div id="firstpane" class="menu_list"> <!--Code for menu starts here-->
                                <p class="menu_head">Package Tours</p>
                                <div class="menu_body">
                                 <jsp:include page="SearchTour.jsp"/>
                                </div>
                                <p class="menu_head">Cars</p>
                                <div class="menu_body">
                                 <jsp:include page="SearchCar.jsp"/>
                                </div>
                                <p class="menu_head">Hotels</p>
                                <div class="menu_body">
                                   <jsp:include page="SearchHotel.jsp"/>			
                                </div>
                                <p class="menu_head">Flights</p>
                                <div class="menu_body">		
                                    <jsp:include page="SearchFlight.jsp"/>
                                 </div>
                          </div>  <!--Code for menu ends here-->
                        </div>
                                 <div id="support">
                                <center>
                <span style="font-size: 20px;color: #343434;">Support</span></center>   
                        <a href="ymsgr:sendIM?mrkoi_av17">
                            <div style="text-align: center">
                                <img src="http://opi.yahoo.com/online?u=mrkoi_av17&amp;m=g&amp;t=14" border="0" alt=" " />
                            </div>   
                        </a>
                    </div>
                     </div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<ul>
			<li><a href="index.jsp">Home</a></li>
                           <li><a href="index.jsp?page=listTour">Package Tours</a></li>
                           <li><a href="index.jsp?page=ListCars">Car Rentals</a>
                           </li>
                           <li><a href="index.jsp?page=ListHotels">Hotels</a>
                           </li>
                           <li><a href="index.jsp?page=ListFlights">Flights</a></li>
                           <li><a href="index.jsp?page=AboutUs">About Us</a>
                            </li>
                            <li><a href="index.jsp?page=ContactUs">Contact Us</a></li>  
		</ul>
		<p>Copyright &copy;. All rights reserved. Design by <a href="http://www.bestfreetemplaes.info" target="_blank" title="Best Free Templates">BFT</a>  </p>
	</div>
</body>
</html>


